package com.github.xiaoymin.map.response.baidu;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.FIELD)
public class GenCoderResult {

    @XmlElement(name = "formatted_address")
    private String address;

    @XmlElement(name = "addressComponent")
    private BaiduAddressComponent baiduAddressComponent;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BaiduAddressComponent getBaiduAddressComponent() {
        return baiduAddressComponent;
    }

    public void setBaiduAddressComponent(BaiduAddressComponent baiduAddressComponent) {
        this.baiduAddressComponent = baiduAddressComponent;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("GenCoderResult{");
        sb.append("address='").append(address).append('\'');
        sb.append(", baiduAddressComponent=").append(baiduAddressComponent);
        sb.append('}');
        return sb.toString();
    }
}
